package com.ksyun.ks3.demo;

import com.ksyun.ks3.dto.DeleteMultipleObjectsResult;

/**
 * @author lijunwei[lijunwei@kingsoft.com]  
 * 
 * @date 2014年12月1日 下午1:41:59
 * 
 * @description 
 **/
public class DeleteObjectDemo extends AbstractDemo{
	/**
	 * 将test.bucket这个存储空间下的test/object.txt删除
	 */
	public void deleteObject(){
		client.deleteObject("test.bucket","test/object.txt");
	}
	/**
	 * 批量删除object
	 */
	public DeleteMultipleObjectsResult deleteObjects(){
		DeleteMultipleObjectsResult result = client.deleteObjects(new String[]{"objectKey1","objectKey2","objectKey2"},"<bucket名称>");
		return result;
	}
}
